package com.feng.kuang.controller;

import com.feng.kuang.bean.Book;
import com.feng.kuang.bean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class YamlController {
    @Autowired
    Book book;

    @Autowired
    User user;

    @RequestMapping("/yaml")
    public Book testYaml(){
        System.out.println(book);
        return book;
    }

    @RequestMapping("/formatdate")
    public User formatDate(){
        System.out.println(user);
        return user;
    }
}
